package com.cl.bootws.config;


import jakarta.websocket.HandshakeResponse;
import jakarta.websocket.server.HandshakeRequest;
import jakarta.websocket.server.ServerEndpointConfig;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class MessageConfigurator extends ServerEndpointConfig.Configurator {
    @Override
    public void modifyHandshake(ServerEndpointConfig sec, HandshakeRequest request, HandshakeResponse response) {
        log.debug("握手请求头信息：" + request.getHeaders());
        log.debug("握手响应头信息：" + response.getHeaders());
        super.modifyHandshake(sec, request, response);
    }
}
